home *** CD-ROM | disk | FTP | other *** search
/ Drivin' Route 66 / Drivin' Route 66 (1995)(Creative Multimedia)[Mac-PC].iso / pc / rtcc.dir / 00340_Script_main < prev    next >
Text File  |  1995-10-02  |  3KB  |  194 lines

  1. --Lisa Sirois
  2.  
  3. on startMovie
  4.   set the centerstage to true
  5.   menuOff
  6.   puppettransition 23
  7.   updatestage
  8.   global choseOption
  9.   set choseOption to 0
  10.   set the colorDepth to 8
  11.   set the centerStage to true
  12.   set the volume of sound 1 to 256
  13.   set the volume of sound 2 to 140
  14.   --set the keyDownScript to "keything"
  15. end
  16.  
  17. on keything
  18.   global evil
  19.   if the key = "6" then 
  20.     put 600 into evil
  21.   end if
  22.   set the keydownscript to "key2"
  23. end
  24.  
  25. on key2
  26.   global evil
  27.   if the key = "6" then 
  28.     put 60+evil into evil
  29.   end if
  30.   set the keydownscript to "key3"
  31. end
  32.  
  33. on key3
  34.   global evil
  35.   if the key= "6" then 
  36.     put 6+ evil into evil
  37.   end if
  38.   if evil=666 then
  39.     go FRAME 1709
  40.   end if 
  41.   set the keydownscript to "keything"
  42. end
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. --a temporary fix for a leftover script call
  51. on dopicon
  52.   nothing
  53. end
  54.  
  55.  
  56. on stopMovie
  57.   when timeOut then nothing
  58.   sound stop 1
  59.   sound stop 2
  60.   menuOff
  61.   unloadcast
  62. end
  63.  
  64.  
  65. on menuScripts
  66.   global choseOption
  67.   if integer(choseOption) = 1 then
  68.     go the frame
  69.   end if
  70. end
  71.  
  72. on puppetExternalSound soundname
  73.   global where
  74.   sound playfile 1, where & soundname
  75.   --checkoption
  76. end
  77.  
  78.  
  79.  
  80. on checkoption
  81.   global choseoption
  82.   if choseoption=1 then
  83.     menuscripts
  84.   end if
  85. end
  86.  
  87.  
  88.  
  89. on mousedown
  90.   global choseoption
  91.   set choseoption to 1
  92. end
  93.  
  94.  
  95.  
  96. on main
  97.   global choseOption
  98.   set choseOption to 0
  99.   repeat while the mouseDown AND the clickon=41
  100.     set the castNum of sprite 42 to the number of cast "menu.active"
  101.     updateStage
  102.   end repeat
  103.   set the castNum of sprite 42 to the number of cast "menu.plain"
  104.   gomain
  105.   updateStage
  106. end 
  107.  
  108. on blacontinue
  109.   repeat while the mouseDown AND the clickon=41
  110.     set the castNum of sprite 41 to the number of cast "continue.active"
  111.     updatestage
  112.   end repeat
  113.   set the castNum of sprite 41 to the number of cast "continue.plain"
  114.   gocontinue
  115.   updateStage
  116. end
  117.  
  118.  
  119. on rewind
  120.   cursor 4
  121.   set the castnum of sprite 43 to the number of cast "rewind off"
  122.   updatestage
  123.   puppetTransition 23
  124.   go marker (-10)
  125.   set the castnum of sprite 43 to the number of cast "rewind on"
  126.   updatestage
  127.   cursor -1
  128. end
  129.  
  130.  
  131.  
  132. on fastforward
  133.   cursor 4
  134.   set the castnum of sprite 44 to the number of cast "fastforward off"
  135.   updatestage
  136.   puppetTransition 23
  137.     go marker (10)
  138.   set the castnum of sprite 44 to the number of cast "fastforward on"
  139.   updatestage
  140.   cursor -1
  141. end
  142.  
  143.  
  144.  
  145.  
  146. on goMain
  147.   global choseOption
  148.   put 0 into choseOption
  149.   menuOff
  150.   updateStage
  151.   sound stop 1
  152.   sound stop 2
  153.   dodelay
  154.   go "fader2"
  155. end
  156.  
  157. on goContinue
  158.   global choseOption
  159.   put 0 into choseOption
  160.   menuoff
  161.   --updatestage
  162. end
  163.  
  164.  
  165. on gotClick
  166.   global choseOption
  167.   put 1 into choseOption
  168.   menuOn
  169.   updateStage
  170. end
  171.  
  172.  
  173.  
  174. on menuOn
  175.   set the volume of sound 1 to 0
  176.   set the volume of sound 2 to 0
  177.   repeat with cnt = 40 to 46
  178.     puppetSprite cnt, true
  179.     set the visibility of sprite cnt to true
  180.   end repeat
  181. end
  182.  
  183.  
  184. on menuOff
  185.   set the volume of sound 1 to 256
  186.   set the volume of sound 2 to 140
  187.   repeat with cnt = 40 to 46
  188.     puppetSprite cnt, false
  189.     set the visible of sprite cnt to false
  190.   end repeat
  191. end
  192.  
  193.  
  194.